<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'dispatchequipment-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'dispatch'); ?>
		<?php echo $form->textField($model,'dispatch',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'dispatch'); ?>
	</div>

        <?php echo $form->hiddenField($model,'counter',array('value'=>$model->getNextCounter())); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'equipmentid'); ?>
		<?php echo $form->dropDownList($model,'equipmentid',$model->getEquipmentList()); ?>
		<?php echo $form->error($model,'equipmentid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'notes'); ?>
		<?php echo $form->textArea($model,'notes',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'notes'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->